Integrand size = 29, antiderivative size = 249 \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \sqrt {d+e x} \sqrt {e+f x}}{4 e f^3 \left (e^2-d f\right )}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2}-\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \text {arctanh}\left (\frac {\sqrt {f} \sqrt {d+e x}}{\sqrt {e} \sqrt {e+f x}}\right )}{4 e^{3/2} f^{7/2}} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 249, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {963, 81, 52, 65, 223, 212} \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {f} \sqrt {d+e x}}{\sqrt {e} \sqrt {e+f x}}\right ) \left (4 e f \left (-2 a e f-b d f+3 b e^2\right )-c \left (-d^2 f^2-6 d e^2 f+15 e^4\right )\right )}{4 e^{3/2} f^{7/2}}+\frac {\sqrt {d+e x} \sqrt {e+f x} \left (4 e f \left (-2 a e f-b d f+3 b e^2\right )-c \left (-d^2 f^2-6 d e^2 f+15 e^4\right )\right )}{4 e f^3 \left (e^2-d f\right )}+\frac {2 (d+e x)^{3/2} \left (a+\frac {e (c e-b f)}{f^2}\right )}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2} \]
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 212
Rule 223
Rule 963
Rubi steps \begin{align*} \text {integral}& = \frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {2 \int \frac {\sqrt {d+e x} \left (\frac {f \left (3 b e^2-b d f-2 a e f\right )-c \left (3 e^3-d e f\right )}{2 f^2}-\frac {1}{2} c \left (d-\frac {e^2}{f}\right ) x\right )}{\sqrt {e+f x}} \, dx}{e^2-d f} \\ & = \frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2}+\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \int \frac {\sqrt {d+e x}}{\sqrt {e+f x}} \, dx}{4 e f^2 \left (e^2-d f\right )} \\ & = \frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \sqrt {d+e x} \sqrt {e+f x}}{4 e f^3 \left (e^2-d f\right )}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2}-\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {e+f x}} \, dx}{8 e f^3} \\ & = \frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \sqrt {d+e x} \sqrt {e+f x}}{4 e f^3 \left (e^2-d f\right )}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2}-\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {e-\frac {d f}{e}+\frac {f x^2}{e}}} \, dx,x,\sqrt {d+e x}\right )}{4 e^2 f^3} \\ & = \frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \sqrt {d+e x} \sqrt {e+f x}}{4 e f^3 \left (e^2-d f\right )}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2}-\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \text {Subst}\left (\int \frac {1}{1-\frac {f x^2}{e}} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {e+f x}}\right )}{4 e^2 f^3} \\ & = \frac {2 \left (a+\frac {e (c e-b f)}{f^2}\right ) (d+e x)^{3/2}}{\left (e^2-d f\right ) \sqrt {e+f x}}+\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \sqrt {d+e x} \sqrt {e+f x}}{4 e f^3 \left (e^2-d f\right )}+\frac {c (d+e x)^{3/2} \sqrt {e+f x}}{2 e f^2}-\frac {\left (4 e f \left (3 b e^2-b d f-2 a e f\right )-c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {d+e x}}{\sqrt {e} \sqrt {e+f x}}\right )}{4 e^{3/2} f^{7/2}} \\ \end{align*}
Time = 0.44 (sec) , antiderivative size = 167, normalized size of antiderivative = 0.67 \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\frac {\sqrt {d+e x} \left (4 e f (3 b e-2 a f+b f x)+c \left (-15 e^3-5 e^2 f x+d f^2 x+e f \left (d+2 f x^2\right )\right )\right )}{4 e f^3 \sqrt {e+f x}}+\frac {\left (4 e f \left (-3 b e^2+b d f+2 a e f\right )+c \left (15 e^4-6 d e^2 f-d^2 f^2\right )\right ) \text {arctanh}\left (\frac {\sqrt {f} \sqrt {d+e x}}{\sqrt {e} \sqrt {e+f x}}\right )}{4 e^{3/2} f^{7/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(833\) vs. \(2(219)=438\).
Time = 0.47 (sec) , antiderivative size = 834, normalized size of antiderivative = 3.35
method | result | size |
default | \(\frac {\sqrt {e x +d}\, \left (8 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) a \,e^{2} f^{3} x +4 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) b d e \,f^{3} x -12 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) b \,e^{3} f^{2} x -\ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) c \,d^{2} f^{3} x -6 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) c d \,e^{2} f^{2} x +15 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) c \,e^{4} f x +4 c e \,f^{2} x^{2} \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+8 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) a \,e^{3} f^{2}+4 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) b d \,e^{2} f^{2}-12 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) b \,e^{4} f -\ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) c \,d^{2} e \,f^{2}-6 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) c d \,e^{3} f +15 \ln \left (\frac {2 e f x +2 \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+d f +e^{2}}{2 \sqrt {e f}}\right ) c \,e^{5}+8 b e \,f^{2} x \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+2 c d \,f^{2} x \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}-10 c \,e^{2} f x \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}-16 a e \,f^{2} \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+24 b \,e^{2} f \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}+2 c d e f \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}-30 c \,e^{3} \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, \sqrt {e f}\right )}{8 \sqrt {e f}\, e \sqrt {\left (e x +d \right ) \left (f x +e \right )}\, f^{3} \sqrt {f x +e}}\) | \(834\) |
[In]
[Out]
none
Time = 0.75 (sec) , antiderivative size = 580, normalized size of antiderivative = 2.33 \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\left [\frac {{\left (15 \, c e^{5} - {\left (c d^{2} e - 4 \, b d e^{2} - 8 \, a e^{3}\right )} f^{2} - 6 \, {\left (c d e^{3} + 2 \, b e^{4}\right )} f + {\left (15 \, c e^{4} f - {\left (c d^{2} - 4 \, b d e - 8 \, a e^{2}\right )} f^{3} - 6 \, {\left (c d e^{2} + 2 \, b e^{3}\right )} f^{2}\right )} x\right )} \sqrt {e f} \log \left (8 \, e^{2} f^{2} x^{2} + e^{4} + 6 \, d e^{2} f + d^{2} f^{2} + 4 \, {\left (2 \, e f x + e^{2} + d f\right )} \sqrt {e f} \sqrt {e x + d} \sqrt {f x + e} + 8 \, {\left (e^{3} f + d e f^{2}\right )} x\right ) + 4 \, {\left (2 \, c e^{2} f^{3} x^{2} - 15 \, c e^{4} f - 8 \, a e^{2} f^{3} + {\left (c d e^{2} + 12 \, b e^{3}\right )} f^{2} - {\left (5 \, c e^{3} f^{2} - {\left (c d e + 4 \, b e^{2}\right )} f^{3}\right )} x\right )} \sqrt {e x + d} \sqrt {f x + e}}{16 \, {\left (e^{2} f^{5} x + e^{3} f^{4}\right )}}, -\frac {{\left (15 \, c e^{5} - {\left (c d^{2} e - 4 \, b d e^{2} - 8 \, a e^{3}\right )} f^{2} - 6 \, {\left (c d e^{3} + 2 \, b e^{4}\right )} f + {\left (15 \, c e^{4} f - {\left (c d^{2} - 4 \, b d e - 8 \, a e^{2}\right )} f^{3} - 6 \, {\left (c d e^{2} + 2 \, b e^{3}\right )} f^{2}\right )} x\right )} \sqrt {-e f} \arctan \left (\frac {{\left (2 \, e f x + e^{2} + d f\right )} \sqrt {-e f} \sqrt {e x + d} \sqrt {f x + e}}{2 \, {\left (e^{2} f^{2} x^{2} + d e^{2} f + {\left (e^{3} f + d e f^{2}\right )} x\right )}}\right ) - 2 \, {\left (2 \, c e^{2} f^{3} x^{2} - 15 \, c e^{4} f - 8 \, a e^{2} f^{3} + {\left (c d e^{2} + 12 \, b e^{3}\right )} f^{2} - {\left (5 \, c e^{3} f^{2} - {\left (c d e + 4 \, b e^{2}\right )} f^{3}\right )} x\right )} \sqrt {e x + d} \sqrt {f x + e}}{8 \, {\left (e^{2} f^{5} x + e^{3} f^{4}\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\int \frac {\sqrt {d + e x} \left (a + b x + c x^{2}\right )}{\left (e + f x\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 263, normalized size of antiderivative = 1.06 \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\frac {\sqrt {e x + d} {\left ({\left (e x + d\right )} {\left (\frac {2 \, {\left (e x + d\right )} c}{f {\left | e \right |}} - \frac {5 \, c e^{4} f^{3} + 3 \, c d e^{2} f^{4} - 4 \, b e^{3} f^{4}}{e^{2} f^{5} {\left | e \right |}}\right )} - \frac {15 \, c e^{6} f^{2} - 6 \, c d e^{4} f^{3} - 12 \, b e^{5} f^{3} - c d^{2} e^{2} f^{4} + 4 \, b d e^{3} f^{4} + 8 \, a e^{4} f^{4}}{e^{2} f^{5} {\left | e \right |}}\right )}}{4 \, \sqrt {e^{3} + {\left (e x + d\right )} e f - d e f}} - \frac {{\left (15 \, c e^{4} - 6 \, c d e^{2} f - 12 \, b e^{3} f - c d^{2} f^{2} + 4 \, b d e f^{2} + 8 \, a e^{2} f^{2}\right )} \log \left ({\left | -\sqrt {e f} \sqrt {e x + d} + \sqrt {e^{3} + {\left (e x + d\right )} e f - d e f} \right |}\right )}{4 \, \sqrt {e f} f^{3} {\left | e \right |}} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {d+e x} \left (a+b x+c x^2\right )}{(e+f x)^{3/2}} \, dx=\int \frac {\sqrt {d+e\,x}\,\left (c\,x^2+b\,x+a\right )}{{\left (e+f\,x\right )}^{3/2}} \,d x \]
[In]
[Out]